Optimal. Leaf size=179 \[ -\frac{1}{33} (2 x+3)^2 \left (3 x^2+5 x+2\right )^{9/2}+\frac{(20358 x+47425) \left (3 x^2+5 x+2\right )^{9/2}}{26730}+\frac{5627 (6 x+5) \left (3 x^2+5 x+2\right )^{7/2}}{25920}-\frac{39389 (6 x+5) \left (3 x^2+5 x+2\right )^{5/2}}{1866240}+\frac{39389 (6 x+5) \left (3 x^2+5 x+2\right )^{3/2}}{17915904}-\frac{39389 (6 x+5) \sqrt{3 x^2+5 x+2}}{143327232}+\frac{39389 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{286654464 \sqrt{3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0837517, antiderivative size = 179, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185, Rules used = {832, 779, 612, 621, 206} \[ -\frac{1}{33} (2 x+3)^2 \left (3 x^2+5 x+2\right )^{9/2}+\frac{(20358 x+47425) \left (3 x^2+5 x+2\right )^{9/2}}{26730}+\frac{5627 (6 x+5) \left (3 x^2+5 x+2\right )^{7/2}}{25920}-\frac{39389 (6 x+5) \left (3 x^2+5 x+2\right )^{5/2}}{1866240}+\frac{39389 (6 x+5) \left (3 x^2+5 x+2\right )^{3/2}}{17915904}-\frac{39389 (6 x+5) \sqrt{3 x^2+5 x+2}}{143327232}+\frac{39389 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{286654464 \sqrt{3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 832
Rule 779
Rule 612
Rule 621
Rule 206
Rubi steps
\begin{align*} \int (5-x) (3+2 x)^2 \left (2+5 x+3 x^2\right )^{7/2} \, dx &=-\frac{1}{33} (3+2 x)^2 \left (2+5 x+3 x^2\right )^{9/2}+\frac{1}{33} \int (3+2 x) \left (\frac{1141}{2}+377 x\right ) \left (2+5 x+3 x^2\right )^{7/2} \, dx\\ &=-\frac{1}{33} (3+2 x)^2 \left (2+5 x+3 x^2\right )^{9/2}+\frac{(47425+20358 x) \left (2+5 x+3 x^2\right )^{9/2}}{26730}+\frac{5627}{540} \int \left (2+5 x+3 x^2\right )^{7/2} \, dx\\ &=\frac{5627 (5+6 x) \left (2+5 x+3 x^2\right )^{7/2}}{25920}-\frac{1}{33} (3+2 x)^2 \left (2+5 x+3 x^2\right )^{9/2}+\frac{(47425+20358 x) \left (2+5 x+3 x^2\right )^{9/2}}{26730}-\frac{39389 \int \left (2+5 x+3 x^2\right )^{5/2} \, dx}{51840}\\ &=-\frac{39389 (5+6 x) \left (2+5 x+3 x^2\right )^{5/2}}{1866240}+\frac{5627 (5+6 x) \left (2+5 x+3 x^2\right )^{7/2}}{25920}-\frac{1}{33} (3+2 x)^2 \left (2+5 x+3 x^2\right )^{9/2}+\frac{(47425+20358 x) \left (2+5 x+3 x^2\right )^{9/2}}{26730}+\frac{39389 \int \left (2+5 x+3 x^2\right )^{3/2} \, dx}{746496}\\ &=\frac{39389 (5+6 x) \left (2+5 x+3 x^2\right )^{3/2}}{17915904}-\frac{39389 (5+6 x) \left (2+5 x+3 x^2\right )^{5/2}}{1866240}+\frac{5627 (5+6 x) \left (2+5 x+3 x^2\right )^{7/2}}{25920}-\frac{1}{33} (3+2 x)^2 \left (2+5 x+3 x^2\right )^{9/2}+\frac{(47425+20358 x) \left (2+5 x+3 x^2\right )^{9/2}}{26730}-\frac{39389 \int \sqrt{2+5 x+3 x^2} \, dx}{11943936}\\ &=-\frac{39389 (5+6 x) \sqrt{2+5 x+3 x^2}}{143327232}+\frac{39389 (5+6 x) \left (2+5 x+3 x^2\right )^{3/2}}{17915904}-\frac{39389 (5+6 x) \left (2+5 x+3 x^2\right )^{5/2}}{1866240}+\frac{5627 (5+6 x) \left (2+5 x+3 x^2\right )^{7/2}}{25920}-\frac{1}{33} (3+2 x)^2 \left (2+5 x+3 x^2\right )^{9/2}+\frac{(47425+20358 x) \left (2+5 x+3 x^2\right )^{9/2}}{26730}+\frac{39389 \int \frac{1}{\sqrt{2+5 x+3 x^2}} \, dx}{286654464}\\ &=-\frac{39389 (5+6 x) \sqrt{2+5 x+3 x^2}}{143327232}+\frac{39389 (5+6 x) \left (2+5 x+3 x^2\right )^{3/2}}{17915904}-\frac{39389 (5+6 x) \left (2+5 x+3 x^2\right )^{5/2}}{1866240}+\frac{5627 (5+6 x) \left (2+5 x+3 x^2\right )^{7/2}}{25920}-\frac{1}{33} (3+2 x)^2 \left (2+5 x+3 x^2\right )^{9/2}+\frac{(47425+20358 x) \left (2+5 x+3 x^2\right )^{9/2}}{26730}+\frac{39389 \operatorname{Subst}\left (\int \frac{1}{12-x^2} \, dx,x,\frac{5+6 x}{\sqrt{2+5 x+3 x^2}}\right )}{143327232}\\ &=-\frac{39389 (5+6 x) \sqrt{2+5 x+3 x^2}}{143327232}+\frac{39389 (5+6 x) \left (2+5 x+3 x^2\right )^{3/2}}{17915904}-\frac{39389 (5+6 x) \left (2+5 x+3 x^2\right )^{5/2}}{1866240}+\frac{5627 (5+6 x) \left (2+5 x+3 x^2\right )^{7/2}}{25920}-\frac{1}{33} (3+2 x)^2 \left (2+5 x+3 x^2\right )^{9/2}+\frac{(47425+20358 x) \left (2+5 x+3 x^2\right )^{9/2}}{26730}+\frac{39389 \tanh ^{-1}\left (\frac{5+6 x}{2 \sqrt{3} \sqrt{2+5 x+3 x^2}}\right )}{286654464 \sqrt{3}}\\ \end{align*}
Mathematica [A] time = 0.158176, size = 138, normalized size = 0.77 \[ \frac{1}{33} \left (-(2 x+3)^2 \left (3 x^2+5 x+2\right )^{9/2}+\frac{1}{810} (20358 x+47425) \left (3 x^2+5 x+2\right )^{9/2}+\frac{61897 \left (6 \sqrt{3 x^2+5 x+2} \left (4478976 x^7+26127360 x^6+64800000 x^5+88560000 x^4+72023472 x^3+34858680 x^2+9298342 x+1054785\right )+35 \sqrt{3} \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{9 x^2+15 x+6}}\right )\right )}{1433272320}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 153, normalized size = 0.9 \begin{align*} -{\frac{4\,{x}^{2}}{33} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{9}{2}}}}+{\frac{197\,x}{495} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{9}{2}}}}+{\frac{28135+33762\,x}{25920} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{7}{2}}}}-{\frac{196945+236334\,x}{1866240} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{5}{2}}}}+{\frac{196945+236334\,x}{17915904} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{3}{2}}}}+{\frac{39389\,\sqrt{3}}{859963392}\ln \left ({\frac{\sqrt{3}}{3} \left ({\frac{5}{2}}+3\,x \right ) }+\sqrt{3\,{x}^{2}+5\,x+2} \right ) }-{\frac{196945+236334\,x}{143327232}\sqrt{3\,{x}^{2}+5\,x+2}}+{\frac{8027}{5346} \left ( 3\,{x}^{2}+5\,x+2 \right ) ^{{\frac{9}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 2.18057, size = 258, normalized size = 1.44 \begin{align*} -\frac{4}{33} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{9}{2}} x^{2} + \frac{197}{495} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{9}{2}} x + \frac{8027}{5346} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{9}{2}} + \frac{5627}{4320} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{7}{2}} x + \frac{5627}{5184} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{7}{2}} - \frac{39389}{311040} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}} x - \frac{39389}{373248} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}} + \frac{39389}{2985984} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} x + \frac{196945}{17915904} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} - \frac{39389}{23887872} \, \sqrt{3 \, x^{2} + 5 \, x + 2} x + \frac{39389}{859963392} \, \sqrt{3} \log \left (2 \, \sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2} + 6 \, x + 5\right ) - \frac{196945}{143327232} \, \sqrt{3 \, x^{2} + 5 \, x + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.49607, size = 471, normalized size = 2.63 \begin{align*} -\frac{1}{7882997760} \,{\left (77396705280 \, x^{10} + 261858852864 \, x^{9} - 1156531322880 \, x^{8} - 9116575930368 \, x^{7} - 25723491978240 \, x^{6} - 41190616509696 \, x^{5} - 41472321125760 \, x^{4} - 26847121235760 \, x^{3} - 10882383306360 \, x^{2} - 2519542755670 \, x - 254668717065\right )} \sqrt{3 \, x^{2} + 5 \, x + 2} + \frac{39389}{1719926784} \, \sqrt{3} \log \left (4 \, \sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (6 \, x + 5\right )} + 72 \, x^{2} + 120 \, x + 49\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int - 3108 x \sqrt{3 x^{2} + 5 x + 2}\, dx - \int - 11494 x^{2} \sqrt{3 x^{2} + 5 x + 2}\, dx - \int - 23659 x^{3} \sqrt{3 x^{2} + 5 x + 2}\, dx - \int - 29358 x^{4} \sqrt{3 x^{2} + 5 x + 2}\, dx - \int - 22000 x^{5} \sqrt{3 x^{2} + 5 x + 2}\, dx - \int - 9112 x^{6} \sqrt{3 x^{2} + 5 x + 2}\, dx - \int - 1341 x^{7} \sqrt{3 x^{2} + 5 x + 2}\, dx - \int 324 x^{8} \sqrt{3 x^{2} + 5 x + 2}\, dx - \int 108 x^{9} \sqrt{3 x^{2} + 5 x + 2}\, dx - \int - 360 \sqrt{3 x^{2} + 5 x + 2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15644, size = 134, normalized size = 0.75 \begin{align*} -\frac{1}{7882997760} \,{\left (2 \,{\left (12 \,{\left (6 \,{\left (8 \,{\left (6 \,{\left (36 \,{\left (2 \,{\left (48 \,{\left (54 \,{\left (60 \, x + 203\right )} x - 48415\right )} x - 18318737\right )} x - 103376945\right )} x - 5959290583\right )} x - 36000278755\right )} x - 186438341915\right )} x - 453432637765\right )} x - 1259771377835\right )} x - 254668717065\right )} \sqrt{3 \, x^{2} + 5 \, x + 2} - \frac{39389}{859963392} \, \sqrt{3} \log \left ({\left | -2 \, \sqrt{3}{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )} - 5 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]